package com.dbs.dao.test1;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.dbs.po.User;

@Mapper
public interface UserDaoTest1 {
	
	@Select("select * from user where id=#{userId}")
	@ResultType(User.class)
	User findUserById(Long userId);
	
	@Update("update user set name='test4' where id=#{userId}")
	@ResultType(User.class)
	int updateUserById(Long userId);
}
